<?php

use think\migration\Seeder;

class TagSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = [
            [
                'tag_name'=>'学习',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'仁义',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'感恩',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'恒心',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'勤奋',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'谦虚',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'节俭',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
            [
                'tag_name'=>'运动',
                'positive_score1'=>1,
                'positive_score2'=>2,
                'negative_score1'=>-1,
                'negative_score2'=>-2
            ],
        ];

        $table = $this->table('tag');
        //$table->insert($data)->save();
    }
}